package com.bruce.tool.map.baidu.domain;

import com.bruce.tool.orm.mybatis.core.annotation.Column;
import com.bruce.tool.orm.mybatis.core.annotation.Id;
import com.bruce.tool.orm.mybatis.core.annotation.Table;
import java.io.Serializable;
import lombok.Data;

@Data
@Table("cityloglat")
public class CityInfo implements Serializable {
    @Id("Id")
    private Integer id;

    @Column("province")
    private String province;

    @Column("city")
    private String city;

    @Column("lat")
    private String lat;

    @Column("log")
    private String log;

    private static final long serialVersionUID = 1L;

    public enum Attribute {
        //,
        ID("id","Id"),
        PROVINCE("province","province"),
        CITY("city","city"),
        LAT("lat","lat"),
        LOG("log","log");

        private String field;

        private String column;

        Attribute(String field, String column) {
            this.field = field;
            this.column = column;
        }

        public String field() {
            return this.field;
        }

        public String column() {
            return this.column;
        }
    }
}